package com.qidian.mes.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;

import java.util.Date;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Time 2023/10/24 11:27
 * @Description
 */
@ExcelIgnoreUnannotated // 当前类中没有添加ExcelProperty注解的就不再自动映射了。
public class Dict {
    @ExcelIgnore // 忽略这个字段的匹配
    private Long dictId;
    @ExcelProperty(value = "字典名称") // value就是表头
    private String dictName;
    @ExcelProperty(value = "字典类型")
    private String dictType;
    @ExcelProperty("字典备注")
    private String dictNotes;
    private Integer dictStatus;
    private Date dictCreateTime;
    private Date dictModifyTime;
    private Long dictCreateTimeMillis;
    private Long dictModifyTimeMillis;


    @Override
    public String toString() {
        return "Dict{" +
                "dictId=" + dictId +
                ", dictName='" + dictName + '\'' +
                ", dictType='" + dictType + '\'' +
                ", dictNotes='" + dictNotes + '\'' +
                ", dictStatus=" + dictStatus +
                ", dictCreateTime=" + dictCreateTime +
                ", dictModifyType=" + dictModifyTime +
                '}';
    }

    public Long getDictId() {
        return dictId;
    }

    public void setDictId(Long dictId) {
        this.dictId = dictId;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getDictNotes() {
        return dictNotes;
    }

    public void setDictNotes(String dictNotes) {
        this.dictNotes = dictNotes;
    }

    public Integer getDictStatus() {
        return dictStatus;
    }

    public void setDictStatus(Integer dictStatus) {
        this.dictStatus = dictStatus;
    }

    public Date getDictCreateTime() {
        return dictCreateTime;
    }

    public void setDictCreateTime(Date dictCreateTime) {
        this.dictCreateTime = dictCreateTime;
    }

    public Date getDictModifyTime() {
        return dictModifyTime;
    }

    public void setDictModifyTime(Date dictModifyTime) {
        this.dictModifyTime = dictModifyTime;
    }

    public Long getDictCreateTimeMillis() {
        if(this.dictCreateTime != null) {
            return this.dictCreateTime.getTime();
        }
        return null;
    }

    public Long getDictModifyTimeMillis() {
        if(this.dictModifyTime != null) {
            return this.dictModifyTime.getTime();
        }
        return null;
    }
}
